| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 15 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | View Code Duplication | import { |
|
| 12 | var p = new Promise((resolve) => { |
||
| 13 | cmsOperations.save.save( |
||
| 14 | fileUtils.getFilePath(req.body.filePath), |
||
| 15 | req.body.tplPath, |
||
| 16 | req.body.json, |
||
| 17 | '', |
||
| 18 | 'draft', |
||
| 19 | null, |
||
| 20 | 'reject') |
||
| 21 | .then(() => { |
||
| 22 | resolve() |
||
| 23 | }).catch(function(e) { |
||
| 24 | console.error(e) |
||
| 25 | }) |
||
| 26 | }) |
||
| 27 | |||
| 61 | export default route |